<%@ page language="java" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>上传批量资源</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
 <%
    String errors=(String)request.getAttribute("errors");
    if(errors==null||errors.equals(""))
          errors="<li>请选择要上传的文件！</li>";
 %>
    <!-- 在这 method要通过post方式提交，同时需在 form中加入enctype="multipart/form-data",表示文件以流的方式上传。-->  
    <form name="form" method="post" action="resources_upload.jsp" enctype="multipart/form-data">
			<table border="1" align="center">
			    <tr><td align="center" colspan="3"><%=errors%></td></tr>
			    <%for(int i=1;i<=5;i++){%>
					<tr>
						<td rowspan="2">文件<%=i%>：</td>
						<td colspan="2"><input type="file" name="file<%=i%>" size="30"></td>
					</tr>
					<tr>
					    <td>资源名称：</td>
					    <td><input type="text" name="resources_name<%=i%>"></td>
					</tr>
				<%}%>
				<tr>
					<td>
						<input type="submit" value="上传"/>
						<input type="reset" value="重置" />
					</td>
				</tr>
				</table>
			</form>	
  </body>
</html>
